import fetch from 'utils/fetch';



export function getQuestionListObj() {
  return fetch({
    url: '/api/admin/bizPasswordQuestion/allQuestions',
    method: 'get'
  })
}

export function registrySubmitObj(obj) {
  return fetch({
    url: '/api/admin/bizPasswordQuestion/registrySave',
    method: 'post',
    // data: obj
    data: obj
  })
}


export function getUserObj(userName) {
  return fetch({
    url: '/api/admin/bizUserAnswer/validateUserName/' + userName,
    method: 'get'
  })
}

//点击下一步调用
export function validateAnswerObj(obj) {
  return fetch({
    url: '/api/admin/bizUserAnswer/validateAnswer',
    method: 'post',
    data: obj
  })
}

export function changePwdObj(obj) {
  return fetch({
    url: '/api/admin/user/modifyPassword',
    method: 'post',
    data: obj
  })
}

export function putObj(id, obj) {
  return fetch({
    url: '/api/admin/user/' + id,
    method: 'put',
    data: obj
  })
}
